const startYear = 2019;
const endYear = new Date().getFullYear();

module.exports = {
  root: './docs',
  plugins: [
    "tbfed-pagefooter", // 添加页脚，版权信息(简单版本)
    "emphasize", // 为文字加上底色
    "splitter", // 侧边栏宽度可调节
    "-sharing", // 禁用默认的分享插件
    "sharing-plus" // 比默认的 sharing 插件多了一些分享方式
  ],
  pluginsConfig: {
    "tbfed-pagefooter": {
      copyright: `Copyright &copy ${startYear}-${endYear}`,
      modify_label: "该文件修订时间：",
      modify_format: "YYYY-MM-DD HH:mm:ss"
    },
    styles: {
      website: './styles/website.css'
    },
    // 分享插件配置
    sharing: {
      douban: false,
      facebook: false,
      google: true,
      pocket: false,
      qq: false,
      qzone: true,
      twitter: false,
      weibo: true,
      all: [
        "douban",
        "facebook",
        "google",
        "instapaper",
        "linkedin",
        "twitter",
        "weibo",
        "messenger",
        "qq",
        "qzone",
        "viber",
        "whatsapp"
      ]
    }
  }
};
